package com.xyz.bleserver;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;


@SuppressWarnings("ALL")
public class MainActivity extends Activity implements View.OnClickListener {

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        findViewById(R.id.btn).setOnClickListener(this);
    }

    @Override
    public void onClick(View v) {
        if (R.id.btn == v.getId()) {
            startService(new Intent(getApplicationContext(),RemoteControlService.class));
        }
    }
}
